<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%@ page import="com.bci.pwtz.mysql.model.Zygt"%>
<%@ page import="com.bci.pwtz.mysql.model.Zyxl"%>
<%@ page import="com.bci.pwtz.mysql.model.Zyzsdlq"%>
<%@page import="com.bci.pwtz.service.ZyxlService"%>
<%@page import="com.bci.pwtz.service.ZygtService"%>
<%@page import="com.bci.pwtz.service.ZyzsdlqService"%>
<%@page import="com.bci.pwtz.service.CompanyUserService"%>
<%@ page import="com.bci.pwtz.service.CompanyService" %>
<%@ page import="com.bci.pwtz.service.impl.CompanyServiceImpl" %>
<%@page import="com.bci.pwtz.common.util.PwtzUtils"%>
<%
	String zyzsdlqid = request.getParameter("deviceid");
	ZyzsdlqService zyzsdlqService = (ZyzsdlqService)SpringUtil.getBean("zyzsdlqService");
	ZygtService zygtService = (ZygtService)SpringUtil.getBean("zygtService");
	ZyxlService zyxlService = (ZyxlService)SpringUtil.getBean("zyxlService");
	CompanyUserService companyUserService = (CompanyUserService)SpringUtil.getBean("companyUserService");
	CompanyService cService=(CompanyServiceImpl)SpringUtil.getBean("companyService");
	Zyzsdlq zyzsdlq = zyzsdlqService.load(zyzsdlqid);
	Zygt zygt = new Zygt();
	Zyxl zyxl = new Zyxl();	
	if(zyzsdlq != null){
		zygt = zygtService.load(zyzsdlq.getTowercode());
		if(zygt != null){
			zyxl = zyxlService.load(zygt.getLinecode());
		}
	}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-中压柱上断路器</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<%-- <script type="text/javascript" src="<%=basePath %>user/z/js/pdbyqlist.js"></script> --%>
</head>
<script type="text/javascript">
</script>
<body bgcolor="white">
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<%if(zyzsdlq != null && zygt!= null && zyxl!=null){ %>
	<div class="pwsj_cont_right_box" scroll="no">
		<!-- 配电变压箱_begin -->
		<div class="pwsj_right_byq" scroll="no">
		<div class="pwsj_right_byq_position">
			<a class="position" href="<%=basePath %>user/m/index.jsp">配网数据</a>&gt;
			<a class="position" href="<%=basePath %>user/z/pdbyqlist.jsp?divecetype=<%=zyxl.getDevicetype() %>">配电变压器</a>&gt;
			<a class="position" href="<%=basePath %>user/z/zyxllist.jsp?deviceid=<%=zyxl.getStartsubstationcode() %>">中压线路</a>&gt;
			<a class="position" href="<%=basePath %>user/z/zygtlist.jsp?deviceid=<%=zyxl.getDeviceid() %>">中压杆塔</a>&gt;
			<a class="position" >中压柱上断路器详情</a>
			<a class="right" href="<%=basePath %>user/z/zyzsdlqlist.jsp?deviceid=<%=zygt.getDeviceid() %>&t=<%=System.currentTimeMillis() %>">返回</a>
		</div>
			<!-- 运行参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">运行参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>设备名称：</span><%=PwtzUtils.validateNull(zyzsdlq.getDevicename())%></li>
						<li class="argument_cont_li"><span>设备编号：</span><%=PwtzUtils.validateNull(zyzsdlq.getDevicenumber())%></li>
						<li class="argument_cont_li"><span>所属线路名称：</span><%=PwtzUtils.validateNull(zyxl.getDevicename())%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>所属杆塔名称：</span><%=PwtzUtils.validateNull(zygt.getDevicename())%></li>
						<li class="argument_cont_li"><span>所属地市：</span><%=PwtzUtils.validateNull(zyzsdlq.getLocalcity())%></li>
						<li class="argument_cont_li"><span>运维单位：</span><%=PwtzUtils.validateNull(zyzsdlq.getOperationunit())%></li>	
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>维护班组：</span><%=PwtzUtils.validateNull(zyzsdlq.getMaintenanceteam())%></li>
						<li class="argument_cont_li"><span>电压等级：</span><%=PwtzUtils.validateNull(zyzsdlq.getVoltagelevel())%></li>
						<li class="argument_cont_li"><span>投运日期：</span><%=PwtzUtils.date2String(zyzsdlq.getCommissioningdate(),"yyyy-MM-dd HH:mm:ss")%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>是否代维：</span><%=PwtzUtils.validateNull(zyzsdlq.getIsgenerationdimension())%></li>
						<li class="argument_cont_li"><span>是否农网：</span><%=PwtzUtils.validateNull(zyzsdlq.getIsruralpowernetwork())%></li>
						<li class="argument_cont_li"><span>开关作用：</span><%=PwtzUtils.validateNull(zyzsdlq.getSwitcheffect())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>设备状态：</span><%=PwtzUtils.validateNull(zyzsdlq.getEquipmentstate())%></li>
						<li class="argument_cont_li"><span>运行状态：</span><%=PwtzUtils.validateNull(zyzsdlq.getOperationstate())%></li>
						<li class="argument_cont_li"><span>地区特征：</span><%=PwtzUtils.validateNull(zyzsdlq.getRegionalcharacteristics())%></li>
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>重要程度：</span><%=PwtzUtils.validateNull(zyzsdlq.getImportantdegree())%></li>
						<li class="argument_cont_li"><span>设备主人：</span><%=PwtzUtils.validateNull(zyzsdlq.getEquipmentowner())%></li>
						<div class="clear"></div>
					</ul>
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 运行参数_end -->
			
			<!-- 资产参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">资产参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>资产性质：</span><%=PwtzUtils.validateNull(zyzsdlq.getAssetsnature())%></li>
						<li class="argument_cont_li"><span>资产单位：</span><%=PwtzUtils.validateNull(zyzsdlq.getAssetunit())%></li>
						<li class="argument_cont_li"><span>资产编号：</span><%=PwtzUtils.validateNull(zyzsdlq.getAssetnumber())%></li>
						<div class="clear"></div>
					</ul>
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 资产参数_end -->
			

			<!-- 物理参数_begin -->
			<div class="argument_box">
				<!-- 参数标题-begin -->
				<div class="argument_title">
					<p class="title">物理参数</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>型号：</span><%=PwtzUtils.validateNull(zyzsdlq.getModel())%></li>
						<li class="argument_cont_li"><span>生产厂家：</span><%=PwtzUtils.validateNull(zyzsdlq.getProductionfactory())%></li>
						<li class="argument_cont_li"><span>出厂编号：</span><%=PwtzUtils.validateNull(zyzsdlq.getSerialnumber())%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>出厂日期：</span><%=PwtzUtils.date2String(zyzsdlq.getFactorydate(),"yyyy-MM-dd HH:mm:ss")%></li>
						<li class="argument_cont_li"><span>灭弧介质：</span><%=PwtzUtils.validateNull(zyzsdlq.getExtinguishingmedium())%></li>
						<li class="argument_cont_li"><span>操作机构型式：</span><%=PwtzUtils.validateNull(zyzsdlq.getOperatormodel())%></li>	
						<div class="clear"></div>
					</ul>			
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>操作方式：</span><%=PwtzUtils.validateNull(zyzsdlq.getOperationmethods())%></li>
						<li class="argument_cont_li"><span>操作机构型号：</span><%=PwtzUtils.validateNull(zyzsdlq.getOperatortype())%></li>
						<li class="argument_cont_li"><span>额定电压：</span><%=PwtzUtils.validateNull(zyzsdlq.getRatedvoltage())%></li>	
						<div class="clear"></div>
					</ul>			
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>额定电流：</span><%=PwtzUtils.validateNull(zyzsdlq.getRatedcapacity())%></li>
						<li class="argument_cont_li"><span>额定短路开断电流：</span><%=PwtzUtils.validateNull(zyzsdlq.getRatedshortcircuitcur())%></li>
						<li class="argument_cont_li"><span>额定短路电流开断次数：</span><%=PwtzUtils.validateNull(zyzsdlq.getRatedshortcircuitnum())%></li>	
						<div class="clear"></div>
					</ul>			
					<ul class="argument_cont_ul">
						<li class="argument_cont_li w50"><span>过流脱扣器额定脱扣电流(低压)：</span><%=PwtzUtils.validateNull(zyzsdlq.getDropawaycurrent())%></li>
						<li class="argument_cont_li w50"><span>接地电阻：</span><%=PwtzUtils.validateNull(zyzsdlq.getGroundingresistance())%></li>	
						<div class="clear"></div>
					</ul>			
				</div>
				<!-- 参数内容_end -->
			</div>
			<!-- 物理参数_end -->
			
			<!-- 管理信息_begin -->
			<div class="argument_box">
				<div class="argument_title">
					<p class="title">管理信息</p>
					<a  class="show"></a>
					<div class="clear"></div>
				</div>				
				<!-- 参数标题-end -->
				<!-- 参数内容_begin -->
				<div class="argument_cont_box">
				<%
						String cName="";
						Company c=cService.load(zyzsdlq.getCompanyid());
						if(c!=null){
						    cName=c.getCompanyName();
						}
						String cUserNmae = "";
						CompanyUser cuser = userService.load(zyzsdlq.getCreateid());
						if(cuser!=null){
						    cUserNmae = cuser.getLoginName();
						}
						String oUserNmae = "";
						CompanyUser ouser = userService.load(zyzsdlq.getLastoperatorid());
						if(cuser!=null){
						    oUserNmae = ouser.getLoginName();
						}
					%>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>创建人：</span><%=PwtzUtils.validateNull(cUserNmae)%></li>
						<li class="argument_cont_li"><span>创建时间：</span><%=PwtzUtils.date2String(zyzsdlq.getCreatedate(),"yyyy-MM-dd HH:mm:ss")%></li>
						<li class="argument_cont_li"><span>最后修改时间：</span><%=PwtzUtils.date2String(zyzsdlq.getLastmodifiedtime(),"yyyy-MM-dd HH:mm:ss")%></li>							
						<div class="clear"></div>
					</ul>
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>所属单位：</span><%=PwtzUtils.validateNull(cName)%></li>
						<li class="argument_cont_li"><span>状态：</span><%if("1".equals(zyzsdlq.getStatus())){out.print("正常");}else if("2".equals(zyzsdlq.getStatus())){out.print("禁用");}else if("3".equals(zyzsdlq.getStatus())){out.print("删除");}%></li>
						<li class="argument_cont_li"><span>GIS编码：</span><%=PwtzUtils.validateNull(zyzsdlq.getGiscode())%></li>							
						<div class="clear"></div>
					</ul>
					
					<ul class="argument_cont_ul">
						<li class="argument_cont_li"><span>最后操作人：</span><%=oUserNmae%></li>
						<li class="argument_cont_li"><span>备注：</span><%=PwtzUtils.validateNull(zyzsdlq.getNote())%></li>
						<div class="clear"></div>
					</ul>					
				</div>
			</div>
			<!-- 管理信息_end -->
		</div>	
		<!-- 配电变压箱_end -->		
	</div>
	<!-- 右侧内容_end -->
	<%} %>
	<div class="clear"></div><!-- 清除左右浮动 -->

	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>